//
//  DetailHeaderTableViewCell.h
//  MyBlog
//
//  Created by NCS on 16/12/21.
//  Copyright © 2016年 YSL. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CollectionCell.h"
#import "YSLScanImage.h"
#import "HomeCellModel.h"

@interface DetailHeaderTableViewCell : UITableViewCell <UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout> {
    float imageSize;
}

@property (strong, nonatomic) HomeCellModel *modal;

@property (weak, nonatomic) IBOutlet UIImageView *avatar;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *device;
@property (weak, nonatomic) IBOutlet YSLIndexedCollectionView *images;

@property CGFloat cellHeight;

// Height constraint of CollectionView
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imagesHeightConstraint;

- (void)setCellData:(HomeCellModel *)model;
- (CGFloat)getCellHeight;
+ (CGFloat)getContentHeightByWidth:(CGFloat)width Title:(NSString *)title font:(UIFont *)font;

@end
